<?php
error_reporting(E_ALL);

mb_internal_encoding('UTF-8');

spl_autoload_register(function ($class) {
    if(strpos($class, 'Emos') === 0) {
        $file = 'emos/classes/' . str_replace('\\', '/', $class) . '.php';
        if(file_exists($file)) {
            require $file;
            return true;
        }
        else {
            return false;
        }
    }
});